package com.geovis.emergency.spd.entity.system.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

/**
 * <p>
 * 岗位保存DTO
 * </p>
 *
 * @author Lonsho
 * @version 1.0
 * @date 2022/6/27
 */
@Getter
@Setter
@ToString(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "SystemPostSaveDTO", description = "岗位保存DTO")
public class SystemPostSaveDTO {


    @ApiModelProperty(value = "岗位名称", required = true)
    @Length(max = 128, message = "岗位名称最长不能超过{128}个字符")
    private String name;

    @ApiModelProperty(value = "岗位名称(英文)", required = true)
    @Length(max = 128, message = "岗位名称(英文)最长不能超过{255}个字符")
    private String enName;

    @ApiModelProperty(value = "排序", required = true)
    private Integer idx;

    @ApiModelProperty("备注")
    private String remark;
}
